<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改垃圾</title>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
</head>
<body style="background-color: transparent;">
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1><small>
                    修改垃圾
                </small></h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/detail/updDetail" method="post">
        <%--前端传递隐藏域--%>
        <input type="hidden" name="d_id" value="${QDetail.d_id}"/>
        <div class="form-group">
            <label>垃圾名称</label>
            <input type="text" name="d_name" class="form-control" value="${QDetail.d_name}" required/>
        </div>
        <div class="form-group">
            <label >垃圾类别</label>
<%--            <input type="text" name="c_id" class="form-control" value="${QDetail.c_id==1?"干垃圾" :(QDetail.c_id==2?"湿垃圾" :(QDetail.c_id==3?"可回收垃圾" :(QDetail.c_id==4?"有害垃圾" :" ")))}" required>--%>
            <select name="c_id" class="form-control">
                <option value="${QDetail.c_id}" selected="selected">--请选择--</option>
                <option value="1">干垃圾</option>
                <option value="2">湿垃圾</option>
                <option value="3">可回收垃圾</option>
                <option value="4">有害垃圾</option>
            </select>
        </div>

            <%--后期添加图片删除下面一行--%>
            <input type="hidden" name="d_pic" value="${QDetail.d_pic}"/>

        <%--        <div class="form-group">--%>
        <%--            <label>垃圾图片</label>--%>
        <%--            <input type="text" name="d_pic" class="form-control" value="${QDetail.d_pic}" required>--%>
        <%--        </div>--%>
        <div class="form-group">
            <label>垃圾描述</label>
            <input type="text" name="d_detail" class="form-control" value="${QDetail.d_detail}" required/>
        </div>
        <div class="form-group">
            <input type="submit" class="form-control" value="修改">
        </div>

    </form>

</div>
</body>
</html>
